	<meta charset="UTF-8">
	<table id="courseTable"></table>
	<script type="text/javascript">
	$(function(){
		var options=$.extend({},$.crudgrid.defaults,{
			title:'课程管理',
			url:'course/page',
			dialog:{
				add:{
					title:'新增',
					href:'course/edit',
					action:'course/save'
				},
				edit:{
					title:'修改',
					href:'course/edit',
					action:'course/save'
				},
				search:{
					title:'查询',
					href:'course/search'
				},
				remove:{
					url:'course/delete',
					msg:'是否要删除这条记录？'
				}
			},
			columns:[
				[
					{title:'cb',field:'cb',checkbox:true},
					{title:'序号',field:'id',width:200},//hidden:true
					{title:'课程名称',field:'name',width:300, formatter:function(val,row){
						return val;
					}},
					{title:'课时数',field:'classHour',width:200,sortable:true}
				]		
			],
			toolbar:[$.crudgrid.buttons.add,'-',$.crudgrid.buttons.edit,'-',$.crudgrid.buttons.search,'-',$.crudgrid.buttons.refresh,'-',$.crudgrid.buttons.remove,'-']
		});
		
		$('#courseTable').datagrid(options);
	})
</script>